package entity;

public class Goods {
    private String goodsId;
    private String goodsName;
    private double price;
    private int goodsNumber;
    private int sellNumber;
    public Goods(){}
    public Goods(String goodsId,String goodsName, double price,Integer goodsNumber){
        this.goodsName=goodsName;
        this.goodsId=goodsId;
        this.price =price;
        this.goodsNumber=goodsNumber;
    }
    public Goods( String goodsId,String goodsName, double price,Integer goodsNumber,Integer sellNumber) {
        this.goodsName=goodsName;
        this.goodsId=goodsId;
        this.price =price;
        this.goodsNumber=goodsNumber;
        this.sellNumber=sellNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getSellNumber() {
        return sellNumber;
    }

    public void setSellNumber(int sellNumber) {
        this.sellNumber = sellNumber;
    }

    public int getGoodsNumber() {
        return goodsNumber;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setGoodsNumber(int goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    @Override
    public String toString() {
        return "{" +
                " 商品编号："+goodsId+'\'' +
                ", 商品名：" + goodsName +
                ", 价格：" + price +
                ", 库存：" + goodsNumber +
                ",销量：" + sellNumber + '\'' +
                '}';
    }
}
